﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BuilderPrattern
{
    /// <summary>
    /// 具体产品类
    /// </summary>
    public class Product
    {
        IList<string> parts= new List<string>();

        public void Add(string part)
        {
            parts.Add(part);
        }

        public void Show() 
        {
            Console.WriteLine("\n产品 创建 ----");
            foreach (string part in parts)
            { 
                Console.WriteLine(part);
            }
        }
    }
}
